package com.xc.pattern.facade;

/**
 * @author xingchen
 * @description
 * @create 2022-09-04 18:58
 */
public class MessageFacade implements ImessageManager {

    private ImessageManager wechatMsgManager = new WechatMessageManager();

    private ImessageManager smsMsgManager = new SmsMessageManager();

    private ImessageManager mailMsgManager = new MailMessageManager();

    private ImessageManager dingDingMsgManager = new DingDingMessageManager();


    @Override
    public void pushMessage() {
        wechatMsgManager.pushMessage();
        smsMsgManager.pushMessage();
        mailMsgManager.pushMessage();
        dingDingMsgManager.pushMessage();
    }
}
